import request from "@/utils/request";
//获取告警记录接口
export function getWarnningListAPI(params) {
  return request({
    url: "/pole/warning/list",
    method: "GET",
    params,
  });
}
// 查看告警记录详情
export function getWarnningDetailListAPI(id) {
  return request({
    url: "/pole/warning/" + id,
    method: "GEt",
  });
}
//删除告警记录
export function delWarnningListAPI(id) {
  return request({
    url: "/pole/warning/" + id,
    method: "DELETE",
  });
}
export function dispatchWarnningListAPI(data) {
  return request({
    url: "/pole/warning/send" + id,
    method: "PUT",
    data,
  });
}
